<input type="hidden" name="goods.id" value="#(goods.id)">

<fieldset class="layui-elem-field">
	<legend>图片设置</legend>
	<div class="layui-field-box">
		<div class="layui-row">
		   	<div id="ID_goods_image_edit" class="layui-col-xs12 layui-col-sm10 layui-col-md8">
				<div class="layui-row">
					<div class="layui-col-xs2 layui-col-sm2 layui-col-md2">
						<label class="layui-form-label">原图</label>
					</div>
					<div class="layui-col-xs2 layui-col-sm2 layui-col-md2">
						<label class="layui-form-label">缩略</label>
					</div>
					<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
						<label class="layui-form-label">布局</label>
					</div>
					<div class="layui-col-xs2 layui-col-sm2 layui-col-md2">
						<label class="layui-form-label">排序</label>
					</div>
					<div class="layui-col-xs2 layui-col-sm2 layui-col-md2">
						<button type="button" class="layui-btn" id="ID_upload_img_btn">上传图片</button>
					</div>
				</div>
				#if(null != goods.id)
				#for(image : goods.goodsImageList)
		
				<div id="ID_goods_image_dev_#(image.id)" class="layui-row" style="height: 54px; padding-top: 3px; padding-bottom: 3px;" align="center">
					<input type="hidden" name="editGoodsImageIds" value="#(image.id)">
					<div class="layui-col-xs2 layui-col-sm2 layui-col-md2">
						<img onclick="imgReview(this);" style="max-height: 48px; max-width: 48px" src="#(image.originalImg)">
					</div>
					<div class="layui-col-xs2 layui-col-sm2 layui-col-md2">
						<img onclick="imgReview(this);" style="max-height: 48px; max-width: 48px" src="#(image.thumbImg)">
					</div>
					<div class="layui-col-xs4 layui-col-sm4 layui-col-md4">
						<select name="editGoodsImagePlaceIds">
							<option value="">-- 请选择 --</option>
							#for(place : goods.goodsImagePlaceList)
							<option value="#(place.id)" #if(place.id == image.placeId) selected #end>#(place.name)</option>
							#end
						</select>
					</div>
					<div class="layui-col-xs2 layui-col-sm2 layui-col-md2">
						<input type="text" name="editGoodsImageSortNums" class="layui-input" value="#(image.sortNum)">
					</div>
					<div class="layui-col-xs2 layui-col-sm2 layui-col-md2">
						<label class="layui-form-label"><a onclick="delGoodsImage(#(image.id));" class="layui-btn layui-btn-danger layui-btn-sm"><i class="layui-icon layui-icon-delete"></i></a></label>
					</div>
				</div>
		
				#end
				#end
			</div>
		</div>
	</div>
</fieldset>

<fieldset class="layui-elem-field">
	<legend>操作区</legend>
	<div class="layui-field-box">
		<div class="layui-btn-container">
			<button class="layui-btn layui-btn-danger" lay-submit="" lay-filter="component-form-demo1">保存图片布局</button>
		</div>
	</div>
</fieldset>
